package com.xuecheng.content;


import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;


@RefreshScope  //nacos配置文件更改不需要重启项目就可以启动
@EnableSwagger2Doc
@EnableFeignClients(basePackages = "com.xuecheng.content.agent")
@EnableDiscoveryClient //nacos注册中心注解
//开启包扫描,因为要扫描其他包,所以要定义,但是标注其他包也要标注本类,因为不标注本类包,启动器就不会扫描本类所在的包
@SpringBootApplication(scanBasePackages={"com.xuecheng.content","com.xuecheng.common.exception"})
public class ContentApplication {
	public static void main(String[] args) {
		SpringApplication.run(ContentApplication.class, args);
	}
}